package cn.tedu.csmall.order.client;

import cn.tedu.csmall.commons.pojo.stock.dto.StockReduceCountDTO;
import cn.tedu.csmall.commons.restful.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 请求方式
 * 请求路径
 * 请求参数
 * 返回结果
 */
@FeignClient("stock")
public interface StockClient {
    @PostMapping("/base/stock/reduce/count")
    public JsonResult reduceCommodityCount(
            @RequestBody StockReduceCountDTO stockReduceCountDTO);
}
